﻿<?xml version="1.0" encoding="utf-8"?>
<request method="client.create">
  <client>
    <first_name>Jane</first_name>
    <last_name>Doe</last_name>
    <organization>ABC Corp</organization>
    <email>janedoe@freshbooks.com</email>
    <!-- Defaults to first name + last name (Optional) -->
    <username>janedoe</username>
    <!-- Defaults to random password (Optional) -->
    <password>seCret!7</password>
    <!-- (Optional) -->
    <contacts>
      <contact>
        <username>alex</username>
        <first_name></first_name>
        <last_name></last_name>
        <!-- (Email address is the only required field) -->
        <email>test@freshbooks.com</email>
        <phone1></phone1>
        <phone2></phone2>
      </contact>
    </contacts>
    <!-- (Optional) -->
    <work_phone>(555) 123-4567</work_phone>
    <!-- (Optional) -->
    <home_phone>(555) 234-5678</home_phone>
    <!-- (Optional) -->
    <mobile></mobile>
    <!-- (Optional) -->
    <fax></fax>
    <!-- See language.list for codes. (Optional) -->
    <language>en</language>
    <!-- (Optional) -->
    <currency_code>USD</currency_code>
    <!-- (Optional) -->
    <notes></notes>

    <!-- Primary address (All optional) -->
    <p_street1>123 Fake St.</p_street1>
    <p_street2>Unit 555</p_street2>
    <p_city>New York</p_city>
    <p_state>New York</p_state>
    <p_country>United States</p_country>
    <p_code>553132</p_code>

    <!-- Secondary address (All optional) -->
    <s_street1></s_street1>
    <s_street2></s_street2>
    <s_city></s_city>
    <s_state></s_state>
    <s_country></s_country>
    <s_code></s_code>
    <!-- e.g. 'VAT Number' (Optional) -->
    <vat_name></vat_name>
    <!-- If set, shown with vat_name under client address (Optional) -->
    <vat_number></vat_number>
  </client>
</request>
